package com.wenwu.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.wenwu.common.bean.RelicsEntity;
import com.wenwu.common.bean.RelicsEntityExample;
import com.wenwu.common.page.PaginationVO;

public interface RelicsEntityMapper extends Dao{
    int countByExample(RelicsEntityExample example);

    int deleteByExample(RelicsEntityExample example);

    int deleteByPrimaryKey(Integer entityId);

    int insert(RelicsEntity record);

    int insertSelective(RelicsEntity record);

    List<RelicsEntity> selectByExampleWithBLOBs(RelicsEntityExample example);

    List<RelicsEntity> selectByExample(RelicsEntityExample example);

    RelicsEntity selectByPrimaryKey(Integer entityId);

    int updateByExampleSelective(@Param("record") RelicsEntity record, @Param("example") RelicsEntityExample example);

    int updateByExampleWithBLOBs(@Param("record") RelicsEntity record, @Param("example") RelicsEntityExample example);

    int updateByExample(@Param("record") RelicsEntity record, @Param("example") RelicsEntityExample example);

    int updateByPrimaryKeySelective(RelicsEntity record);

    int updateByPrimaryKeyWithBLOBs(RelicsEntity record);

    int updateByPrimaryKey(RelicsEntity record);
    
    /**
     * 分页条件查询
     * @param relicsEntity
     * @param pageVo
     * @return
     */
    List<RelicsEntity> selectListByPage(@Param("relicsEntity") RelicsEntity relicsEntity,@Param("pageVo") PaginationVO pageVo);
    
    /**
	 * 分页查询的所有结果总数量
	 * @param relicsEntity
	 * @param pageVo
	 * @return
	 */
	int selectTotalRecord(@Param("relicsEntity")RelicsEntity relicsEntity);

	/**
	 * 根据主键批量删除数据
	 * @param keyList
	 * @return
	 */
	int deleteInfoByKey(List<String> keyList);
}